#include<stdio.h>
#include<string.h>
#include<ctype.h>
int Clean(char a[]);
void Compare(char a[], char b[]);
int main()
{
	char s[2][20];
	int count[2];
	/*printf("Enter the first word:");*/
	fgets(s[0], 20, stdin);
	/*printf("Enter the second word:");*/
	fgets(s[1], 20, stdin);
	count[0]=Clean(s[0]);
	count[1]=Clean(s[1]);
	if (count[0]!=count[1])
		printf("n");
	else
		Compare(s[0],s[1]);
	return 0;
}
int Clean(char a[])
{
	int count = strlen(a), i, j,k, x, y,flag;
	char temp;	
	for (i = 0, k = 0; i < count; i++)
	{
		flag = isalpha(a[i]);
		if (flag == 0 )		
			continue;	
		else if (flag == 1)
			a[k] = a[i] + 32;
		else a[k] = a[i];
		k++;
	}
	a[k] = '\0';
	return strlen(a);
}
void Compare(char a[], char b[])
{
	int i,count = strlen(a),flag=0;
	int alphabeta[30] = { 0 };
	for ( i = 0; i < count; i++)
		alphabeta[int(a[i]) - 97]++;
	for (i = 0; i < count; i++)
		alphabeta[int(b[i]) - 97]--;
	for(i=0;i<26;i++)
		if (alphabeta[i] != 0)
		{
			flag = 1;
			break;
		}
	if (flag)
		printf("n");
	else
		printf("y");
}